<%@ page import="cn.school.mybatis.service.StudentService" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="basePath"  value="${pageContext.request.contextPath}"/>
<%--
  Created by IntelliJ IDEA.
  User: zhaoyang
  Date: 2020/8/4
  Time: 9:44 上午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改学生信息</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    int id = new Integer(request.getParameter("stuno"));
    int result = StudentService.STUDENT_SERVICE.delete(id);

%>

<script>
    if (confirm(<%=result%>+"条信息删除成功！")) {
        location.replace("${basePath}/AdminLTEdemo01/s_student/s_studentInfo.html");
    } else {
        location.replace("${basePath}/AdminLTEdemo01/home.jsp");
    }
</script>

</body>
</html>
